// 类型别名泛型定义
type ApiRes<T> = {
  code: number
  message: string
  success: boolean
  data: T
}
// 使用
type loginRes = ApiRes<{ userId: string }>
type otherRes = ApiRes<{ token: string }>

type Xxx<T> = {
  arr: T[]
}
type Xxx1 = Xxx<number>

export {}
